package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;

import java.sql.SQLException;
import java.util.Collection;

public interface SchoolServiceInterface {
    Collection<School>findAll()throws SQLException, BysjException;
    School find(Long id)throws SQLException, BysjException;
    boolean delete(Long id)throws SQLException, BysjException;
    boolean add(School school) throws SQLException;
    Collection<School> findAll(Pagination pagination)throws SQLException, BysjException;
}
